home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / MiniStoneSky.as < prev    next >
Encoding:
Text File  |  2007-09-27  |  640 b   |  29 lines

  1. class MiniStoneSky extends Library.State
  2. {
  3.    var mcRef;
  4.    function MiniStoneSky(__mcRef)
  5.    {
  6.       super(__mcRef);
  7.       this.setState("Idle");
  8.       this.mcRef.mcState.mcHit._visible = false;
  9.       MiniGameManager.Instance.doAddListener(this);
  10.    }
  11.    function onCatched()
  12.    {
  13.       this.setState("Out");
  14.    }
  15.    function get Ref()
  16.    {
  17.       return this.mcRef;
  18.    }
  19.    function doOut()
  20.    {
  21.       if(this.isStateComplete())
  22.       {
  23.          MiniGameManager.Instance.doRemoveListener(this);
  24.          this.mcRef.swapDepths(MiniGameManager.REMOVE_DEPTH);
  25.          this.mcRef.removeMovieClip();
  26.       }
  27.    }
  28. }
  29.